﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using TarreOA.TarreOADAL;

public partial class page_post_tel_selectByTel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string tel=Request.QueryString["tel"];

            GRVShowByTel.DataSource = this.getDataSet(tel);

            GRVShowByTel.DataBind();
        }
    }
    protected DataSet getDataSet(string tel)
    {


        SqlConnection conn = SQLManager.GetConn();
        SqlDataAdapter myda = new SqlDataAdapter("SELECT * FROM post_tel where tel_no='"+tel+"'", conn);

        DataSet myds = new DataSet();
        myda.Fill(myds, "lis");
        conn.Close();
        return myds;

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("./PostTelMain.aspx");
    }
}
